import request from '@/utils/request'

// 获取学校自查活动列表
export function getCommentSchoolActivity() {
	return request({
		'url': '/schoolQuestion/getCommentSchoolActivity',
		'method': 'post'
	})
}

// 根据活动id获取区域列表
export function getCommentSchoolArea(activityId) {
	return request({
		'url': '/schoolQuestion/getCommentSchoolArea',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

// 获取学校列表
export function getCommentSchools(param) {
	return request({
		'url': '/schoolQuestion/getCommentSchools',
		'method': 'post',
		'params': param
	})
}

// 获取学校需要审核的指标列表
export function auditingCommentSchoolTarget(activityId, schoolId) {
	return request({
		'url': '/schoolQuestion/auditingCommentSchoolTarget',
		'method': 'post',
		'params': {
			activityId,
			schoolId
		}
	})
}

// 获取学校需要审核的指标列表
export function commitCommentSchool(param) {
	return request({
		'url': '/schoolQuestion/commitCommentSchool',
		'method': 'post',
		'params': param
	})
}

// 获取督导报告活动列表

export function getALLSchoolActivity() {
	return request({
		'url': '/schoolQuestion/getALLSchoolActivity',
		'method': 'post'
	})
}

// 获取完成的活动列表
export function getAllEndActivity() {
	return request({
		'url': '/rectification/getAllEndActivity',
		'method': 'post'
	})
}

// 获取市教育局的通知书
export function getCityNotice(activityId) {
	return request({
		'url': '/rectification/getCityNotice',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

// 获取市级的整改通知书相关信息
export function getCityNoticeDealDetail(activityId, noticeId, areacode) {
	return request({
		'url': '/rectification/getCityNoticeDealDetail',
		'method': 'post',
		'params': {
			activityId,
			noticeId,
			areacode
		}
	})
}

// 查看市级别的通知书的详情页面
export function getCityNoticeDetail(activityId, noticeId, areacode) {
	return request({
		'url': '/rectification/getCityNoticeDetail',
		'method': 'post',
		'params': {
			activityId,
			noticeId,
			areacode
		}
	})
}

// 创建市的整改通知书
export function setCityNotice(activityId) {
	return request({
		'url': '/rectification/setCityNotice',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

// 查询有待整改问题的活动
export function getImprovedActivity() {
	return request({
		'url': '/schoolQuestion/getImprovedActivity',
		'method': 'post'
	})
}

// 查询有待整改问题学校的区域
export function getImprovedArea(activityId) {
	return request({
		'url': '/schoolQuestion/getImprovedArea',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

// 查询有待整改问题学校
export function getImprovedSchools(activityId, areaId, schoolName) {
	return request({
		'url': '/schoolQuestion/getImprovedSchools',
		'method': 'post',
		'params': {
			activityId,
			areaId,
			schoolName
		}
	})
}

// 查询学校待整改问题
export function schoolsImproved(activityId, schoolId, state) {
	return request({
		'url': '/schoolQuestion/schoolsImproved',
		'method': 'post',
		'params': {
			activityId,
			schoolId,
			state
		}
	})
}

// 市查询问题指标和全部指标 数量 占比
export function cityCommentReport(activityId) {
	return request({
		'url': '/schoolQuestion/getCityCommentReport',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

// 市查询各个区县问题指标和全部指标 数量 占比
export function cityZoneMatter(activityId) {
	return request({
		'url': '/schoolQuestion/getCityZoneMatter',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

// 市查询各个区县问题指标和全部指标 数量 占比
export function cityMattetCount(activityId) {
	return request({
		'url': '/schoolQuestion/getCityMattetCount',
		'method': 'post',
		'params': {
			activityId
		}
	})
}

//查询该项活动中指标的评论内容
export function getSchoolTarget(id) {
	return request({
		'url': '/schoolQuestion/getSchoolTarget',
		'method': 'post',
		'params': {
			id
		}
	})
}

//对整改的反馈进行合格处理
export function dealMatterQualified(noticeid) {
	return request({
		'url': '/rectification/dealMatterQualified',
		'method': 'post',
		'params': {
			noticeid
		}
	})
}

//督导室提交学校整改评论
export function commitComment(commentId,content,state) {
	return request({
		'url': '/schoolQuestion/commitComment',
		'method': 'post',
		'params': {
			commentId,
			content,
			state
		}
	})
}
